/*
 * @Author: linj
 * @Email: 993353454@qq.com
 * @Date: 2020-06-17 15:33:38
 * @Description:
 */
const GetGlobalComponent = () => {
  const componentsContext = require.context(
    './components/Global',
    true,
    /index.vue$/
  )
  const comList = []
  componentsContext.keys().forEach((argPath) => {
    const componentConfig = componentsContext(argPath).default
    console.log('注册组件：', argPath, componentConfig)
    comList.push(componentConfig)
  })
  return comList
}
export default GetGlobalComponent
